// stores/index.ts
import api from '@/service'
import { defineStore } from 'pinia';

export const useIndexStore = defineStore('index', {
	state: () => {
        return {
            count:0,
        };
	},
    getters: {
        doubleCount: (state) => state.count * 2
    },
    actions: {
		async increment() {
			await this.count++;
		},
	},
});
